import 'package:flutter/material.dart';

class NewsItem extends StatefulWidget {
  const NewsItem({Key? key}) : super(key: key);

  @override
  State<NewsItem> createState() => _NewsItemState();
}

class _NewsItemState extends State<NewsItem> {
  @override
  Widget build(BuildContext context) {
    return Container(
        width:double.infinity,
        padding:const EdgeInsets.fromLTRB(0, 15, 0, 15),
        decoration:const BoxDecoration(
            border:Border(
                bottom:BorderSide(
                    color:Color(0xEEEEEEEE),
                    width:0.5
                )
            )
        ),
        child:Row(
        children: [
            const Image(image:AssetImage("images/banner_slices/banner@3x.png"),
              width:120,
              height:60,
              fit:BoxFit.fill,
            ),
            Expanded(
              child: Container(
              height:60,
              margin:EdgeInsets.fromLTRB(10, 0, 0, 0),
              alignment:Alignment.centerLeft,
              child: Flex(
                crossAxisAlignment:CrossAxisAlignment.start,
                mainAxisAlignment:MainAxisAlignment.spaceBetween,
                direction:Axis.vertical,
                children:[
                   Expanded(
                       child:Container(
                          child:const Text("会议通知公告",textAlign:TextAlign.left),
                          width:double.infinity,
                          alignment:Alignment.topLeft,
                       )
                   ),
                  Expanded(
                      child:Container(
                        width:double.infinity,
                        alignment:Alignment.bottomRight,
                        child:const Text("太蓝运营部门 2022-12-31",textAlign:TextAlign.right,style:TextStyle(
                            fontSize:12,
                            color:Colors.grey
                        ),),
                      )
                  ),


                ],
              ),
            ),
            )
        ],
    ),);
  }
}
